<!-- $Id: goods_info.htm 17126 2010-04-23 10:30:26Z liuhui $ -->
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,selectzone.js,colorselector.js"}
<script type="text/javascript" src="../js/calendar.php?lang={$cfg_lang}"></script>

<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />

{if $warning}
<ul style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
  <li style="border: 1px solid #CC0000; background: #FFFFCC; padding: 10px; margin-bottom: 5px;" >{$warning}</li>
</ul>
{/if}

<!-- start goods form -->
<div class="tab-div">
    <!-- tab bar -->
    <div id="tabbar-div">
	
    </div>

    <!-- tab body -->
    <div id="tabbody-div">
      <form enctype="multipart/form-data" action="" method="post" name="theForm" >
        <!-- 上传文件最大值的设置 -->
        <input type="hidden" name="MAX_FILE_SIZE" value="2097152" />
        <!--  稿件基本信息 -->
        <table width="90%" id="general-table" align="center">
          <tr>
            <td class="label">{$lang.lab_des_name}</td>
            <td><input type="text" name="des_name" value="{$designer.des_name|escape}"size="30" /> {$lang.require_field}</td>
          </tr>
          <tr>
            <td class="label">{$lang.lab_des_avatar}</td>
            <td>
              {if $designer.des_avatar}
                <a href="javascript:;" target="_blank"><img src="../{$designer.des_avatar}" width="200" border="0" /></a><br/>
              {/if}
              <input type="file" name="file_des_avatar" size="35" />
            </td>
          </tr>

          <tr>
            <td class="label">{$lang.lab_des_img1}</td>
            <td>
              {if $designer.des_img1}
                <a href="javascript:;" target="_blank"><img src="../{$designer.des_img1}" width="200" border="0" /></a><br/>
              {/if}
              <input type="file" name="file_des_img1" size="35" />
            </td>
          </tr>

		 <tr>
            <td class="label">{$lang.lab_des_img2}</td>
            <td>
              {if $designer.des_img2}
                <a href="javascript:;" target="_blank"><img src="../{$designer.des_img2}" width="200" border="0" /></a><br/>
              {/if}
              <input type="file" name="file_des_img2" size="35" />
            </td>
          </tr>

		    <tr>
            <td class="label">{$lang.lab_des_img3}</td>
            <td>
              {if $designer.des_img3}
                <a href="javascript:;" target="_blank"><img src="../{$designer.des_img3}" width="200" border="0" /></a><br/><br/>
              {/if}
              <input type="file" name="file_des_img3" size="35" />
            </td>
          </tr>
          <tr>
             <td class="label">{$lang.lab_des_desc}</td>
			 <td>{$FCKeditor}</td>
          </tr>
        </table>

        <div class="button-div">
          <input type="hidden" name="des_id" value="{$designer.des_id}" />
          <input type="button" value="{$lang.button_submit}" class="button" onclick="validate()" />
          <input type="reset" value="{$lang.button_reset}" class="button" />
        </div>
        <input type="hidden" name="act" value="{$form_act}" />
      </form>
    </div>
</div>
<!-- end goods form -->

<script  language="JavaScript">
  function validate(goods_id)
  {
	  var des_name = document.forms['theForm'].elements['des_name'].value;
	  if(des_name == null || des_name== ''){
		 alert(des_name_not_null);
		 return false;
	  }
	
	  document.forms['theForm'].submit();
}

</script>

{include file="pagefooter.htm"}
